import base from './base'

class CommonNodeView extends base.view {
	constructor(props) {
		super(props)
	}

}

class CommonNodeModel extends base.model {
	getNodeName() {
		if (this.properties && this.properties.event && this.properties.event.keyDefine) {
			return this.properties.name + this.properties.event.keyDefine
		}
		return this.properties.name
	}
}

export default {
	type: 'common-node',
	model: CommonNodeModel,
	view: CommonNodeView
}
